﻿namespace ZR.Model.Souvenir.Dto
{
    public class OrderItemDto
    {
        public int Id { get; set; }
        
        [JsonConverter(typeof(ValueToStringConverter))]
        public long UserId { get; set; }
        
        /// <summary>
        /// 订单ID
        /// </summary>
        public int OrderId { get; set; }
        
        public int ProductId { get; set; }
        
        /// <summary>
        /// 纪念品名称
        /// </summary>
        public string ProductName { get; set; }
        
        /// <summary>
        /// 纪念品详情
        /// </summary>
        public string ProductDetail { get; set; }
        
        /// <summary>
        /// 生成订单时的纪念品单价(单位是元,保留两位小数)
        /// </summary>
        public decimal CurrentUnitPrice { get; set; }
        
        /// <summary>
        /// 纪念品数量
        /// </summary>
        public int Quantity { get; set; }
        
        public string ImageUrl { get; set; }
        
        /// <summary>
        /// 纪念品总价(单位是元,保留两位小数)
        /// </summary>
        public decimal TotalPrice { get; set; }
        
        public string CategoryName { get; set; }
        
        public int CategoryId { get; set; }
    }

    public class OrderItemQueryDto : PagerInfo
    {
        
    }
}